package com.easyidea.its.domain.service.operationrecord.impl;



import java.util.Date;
import java.util.List;

import com.easyidea.its.domain.model.system.OperationRecord;
import com.easyidea.its.domain.repository.operationrecord.OperationRecordRepository;
import com.easyidea.its.domain.service.base.impl.BaseServiceImpl;
import com.easyidea.its.domain.service.operationrecord.OperationRecordService;

public class OperationRecordServiceImpl extends BaseServiceImpl<OperationRecord> implements OperationRecordService {


	private OperationRecordRepository operationRecordRepository;
	
	public List<OperationRecord> getOperationRecords(Date startDate, Date endDate, int startAtIndex,
			int pageSize) {
		// TODO Auto-generated method stub
		return operationRecordRepository.getOperationRecords(startDate, endDate , startAtIndex, pageSize);
	}

	public int getOperationRecordsCount(Date startDate, Date endDate) {
		// TODO Auto-generated method stub
		return operationRecordRepository.getOperationRecordsCount(startDate, endDate);
	}

	public OperationRecordRepository getOperationRecordRepository() {
		return operationRecordRepository;
	}

	public void setOperationRecordRepository(
			OperationRecordRepository operationRecordRepository) {
		this.operationRecordRepository = operationRecordRepository;
	}


}
